package org.lifxue.jqda.run;

import java.util.List;

import org.lifxue.jqda.lucene.index.Indexer;
import org.lifxue.jqda.lucene.index.impl.IndexerFile;

/**
 * 
 * @Description:
 * @Author: zhangzuoqiang
 * @Date: Sep 26, 2011
 */
public class IndexTask extends java.util.TimerTask {

	private List<String> IS_DIR;// 扫描目录
	private List<String> IS_INDEX_TYPE;// 搜索文件类型

	public IndexTask(List<String> dirs, List<String> types) {
		IS_DIR = dirs;
		IS_INDEX_TYPE = types;
	}

	@Override
	public void run() {
		Indexer a = new IndexerFile();
		a.indexer(IS_DIR, IS_INDEX_TYPE);
	}

}
